package cn.gcjxsc.repository.merchant.redpack;

import cn.gcjxsc.entity.merchant.redpack.RedPackRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface RedPackRecordRepository extends JpaRepository<RedPackRecord, Integer>, JpaSpecificationExecutor<RedPackRecord> {
    List<RedPackRecord> findBySourceSn(String sn);

    RedPackRecord findBySourceSnAndType(String sn, Integer type);
}
